﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.BaseData.Entitys;

/// <summary>
/// 检卡抽样方案明细实体.
/// </summary>
[SugarTable("qms_base_checkcarddetail","检卡抽样方案明细")]
[Tenant(ClaimConst.TENANTID)]
public class QmsBaseCheckcarddetailEntity:CLDEntityBase
{

    /// <summary>
    /// 抽样表ID.
    /// </summary>
    [SugarColumn(ColumnName = "F_SampleId",ColumnDescription = "抽样表ID")]
    public string SampleId { get; set; }

    /// <summary>
    /// 检验项目.
    /// </summary>
    [SugarColumn(ColumnName = "F_InnspectionName",ColumnDescription = "检验项目")]
    public string InnspectionName { get; set; }

    /// <summary>
    /// 检验条⽬.
    /// </summary>
    [SugarColumn(ColumnName = "F_InnspectionEntry",ColumnDescription = "检验条⽬")]
    public string InnspectionEntry { get; set; }

    /// <summary>
    /// 检验⽅法.
    /// </summary>
    [SugarColumn(ColumnName = "F_InnspectionMethod",ColumnDescription = "检验⽅法")]
    public string InnspectionMethod { get; set; }

    /// <summary>
    /// 类型：定量、定性.
    /// </summary>
    [SugarColumn(ColumnName = "F_Type",ColumnDescription = "类型：定量、定性")]
    public string Type { get; set; }

    /// <summary>
    /// 定量标准：区间，⽐较符，允公差.
    /// </summary>
    [SugarColumn(ColumnName = "F_QuantitativeStandards",ColumnDescription = "定量标准：区间，⽐较符，允公差")]
    public string QuantitativeStandards { get; set; }

    /// <summary>
    /// 标准值.
    /// </summary>
    [SugarColumn(ColumnName = "F_StandardValue",ColumnDescription = "标准值")]
    public decimal StandardValue { get; set; }

    /// <summary>
    /// 上偏差.
    /// </summary>
    [SugarColumn(ColumnName = "F_UpperDeviation",ColumnDescription = "上偏差")]
    public decimal UpperDeviation { get; set; }

    /// <summary>
    /// 下偏差.
    /// </summary>
    [SugarColumn(ColumnName = "F_LowerDeviation",ColumnDescription = "下偏差")]
    public decimal LowerDeviation { get; set; }

    /// <summary>
    /// 最大值.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaximumValue",ColumnDescription = "最大值")]
    public decimal MaximumValue { get; set; }

    /// <summary>
    /// .
    /// </summary>
    [SugarColumn(ColumnName = "F_MinimumValue",ColumnDescription = "")]
    public decimal MinimumValue { get; set; }

    /// <summary>
    /// ⼩数位数.
    /// </summary>
    [SugarColumn(ColumnName = "F_Accuracy",ColumnDescription = "⼩数位数")]
    public int? Accuracy { get; set; }

    /// <summary>
    /// 计量单位，选择，⾮⼿⼯输⼊.
    /// </summary>
    [SugarColumn(ColumnName = "F_Unit",ColumnDescription = "计量单位，选择，⾮⼿⼯输⼊")]
    public string Unit { get; set; }

    /// <summary>
    /// 备注.
    /// </summary>
    [SugarColumn(ColumnName = "F_Remarks",ColumnDescription = "备注")]
    public string Remarks { get; set; }

    /// <summary>
    /// 文件信息.
    /// </summary>
    [SugarColumn(ColumnName = "F_FileInfo", ColumnDescription = "文件信息")]
    public string FileInfo { get; set; }

    /// <summary>
    /// N未开启 Y 开启，则此检验项⽬⽆需有合格判定.
    /// </summary>
    [SugarColumn(ColumnName = "F_ReferTo",ColumnDescription = "N未开启 Y 开启，则此检验项⽬⽆需有合格判定")]
    public string ReferTo { get; set; }

    /// <summary>
    /// N未开启 Y开启.
    /// </summary>
    [SugarColumn(ColumnName = "F_Destructiveness",ColumnDescription = "N未开启 Y开启")]
    public string Destructiveness { get; set; }

    /// <summary>
    /// 在检验时进⾏相应的输⼊，可以维护⾃定义参数.
    /// </summary>
    [SugarColumn(ColumnName = "F_CustomParameters",ColumnDescription = "在检验时进⾏相应的输⼊，可以维护⾃定义参数")]
    public object CustomParameters { get; set; }

    /// <summary>
    /// 默认⽆限定，可增加逻辑，仅当条件等于时，才出现，限定供应商、限定客户。限定业务类型.
    /// </summary>
    [SugarColumn(ColumnName = "F_QualifyingLogic",ColumnDescription = "默认⽆限定，可增加逻辑，仅当条件等于时，才出现，限定供应商、限定客户。限定业务类型")]
    public string QualifyingLogic { get; set; }

    /// <summary>
    /// 限定供应商.
    /// </summary>
    [SugarColumn(ColumnName = "F_Supplier",ColumnDescription = "限定供应商")]
    public string Supplier { get; set; }

    /// <summary>
    /// 限定客户.
    /// </summary>
    [SugarColumn(ColumnName = "F_Customer",ColumnDescription = "限定客户")]
    public string Customer { get; set; }

    /// <summary>
    /// 限定业务类型.
    /// </summary>
    [SugarColumn(ColumnName = "F_BusinessType",ColumnDescription = "限定业务类型")]
    public string BusinessType { get; set; }

    /// <summary>
    /// 排序.
    /// </summary>
    [SugarColumn(ColumnName = "F_Sort",ColumnDescription = "排序")]
    public int? Sort { get; set; }


    /// <summary>
    /// 父ID.
    /// </summary>
    [SugarColumn(ColumnName = "F_Volt",ColumnDescription = "父ID")]
    public string Volt { get; set; }

    /// <summary>
    /// 公式.
    /// </summary>
    [SugarColumn(ColumnName = "F_Formula",ColumnDescription = "公式")]
    public string Formula { get; set; }

    /// <summary>
    /// 类型：主检验，子检验.
    /// </summary>
    [SugarColumn(ColumnName = "F_VType",ColumnDescription = "类型：主检验，子检验")]
    public string VType { get; set; }
}